﻿<?xml version="1.0" encoding="utf-8"?>
<Elements Id="b0823bde-ec67-446b-b139-a313a62f6307" xmlns="http://schemas.microsoft.com/sharepoint/">
  <ContentType ID="0x01009ad118f216de41d181e0a33c501b59af"
               Name="$Resources:Mailer,CTName_HTML"
               Group="cLabs"
               Description="$Resources:Mailer,CTDescription_HTML"
               Version="0">
    <FieldRefs>
      <FieldRef ID="{714E8791-9A86-4d0d-BE4D-674F706956B4}" Name="FromField" DisplayName="$Resources:Mailer,FromField;" />
      <FieldRef ID="{1666D8EA-D8B8-4db9-A32F-8F72B6EBF58B}" Name="GroupField" DisplayName="$Resources:Mailer,MailRecipients;" Required="TRUE" />
      <FieldRef ID="{15F259A2-3EE8-439f-8BEE-F4280B5B2EE7}" Name="CarbonCopyField" DisplayName="$Resources:Mailer,Cc;"/>
      <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" DisplayName="$Resources:Mailer,MailSubject" Sealed="TRUE"  />
      <FieldRef ID="{7662cd2c-f069-4dba-9e35-082cf976e170}" Name="Body" DisplayName="$Resources:Mailer,MailBody" Sealed="TRUE" />
      <FieldRef ID="{A33B83F4-E29B-4b15-9253-111266B7745B}" Name="PriorityField" DisplayName="$Resources:Mailer,MailPriority"  />
      <FieldRef ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}" Name="Comments" />
      <FieldRef ID="{c4e0f350-52cc-4ede-904c-dd71a3d11f7d}" Name="JobTitle" />
      <FieldRef ID="{6ca7bd7f-b490-402e-af1b-2813cf087b1e}" Name="WorkCity" />
    </FieldRefs>
    <XmlDocuments>
      <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/events">
        <spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events">
          <spe:Receiver>
            <spe:Name>ItemAdded</spe:Name>
            <spe:Type>ItemAdded</spe:Type>
            <spe:Assembly>GroupMailer.EventRecevier, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e75e876125ad5849</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.sharepointutils.GMEventRecevier.GMEventReceiverItemEventReceiver</spe:Class>
          </spe:Receiver>
          <spe:Receiver>
            <spe:Name>ItemUpdating</spe:Name>
            <spe:Type>ItemUpdating</spe:Type>
            <spe:Assembly>GroupMailer.EventRecevier, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e75e876125ad5849</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.sharepointutils.GMEventRecevier.GMEventReceiverItemEventReceiver</spe:Class>
          </spe:Receiver>
          <spe:Receiver>
            <spe:Name>ItemAdding</spe:Name>
            <spe:Type>ItemAdding</spe:Type>
            <spe:Assembly>GroupMailer.EventRecevier, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e75e876125ad5849</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.sharepointutils.GMEventRecevier.GMEventReceiverItemEventReceiver</spe:Class>
          </spe:Receiver>
        </spe:Receivers>
      </XmlDocument>
    </XmlDocuments>
  </ContentType>
  <ContentType ID="0x0100D158DD17D9224e5a95AAFC7008A72ACE"
               Name="$Resources:Mailer,CTName_Text"
               Group="_Hidden"
               Description="$Resources:Mailer,CTDescription_Text"
               Version="0">
    <FieldRefs>
      <FieldRef ID="{714E8791-9A86-4d0d-BE4D-674F706956B4}" Name="FromField" DisplayName="$Resources:Mailer,FromField;" />
      <FieldRef ID="{1666D8EA-D8B8-4db9-A32F-8F72B6EBF58B}" Name="GroupField" DisplayName="$Resources:Mailer,MailRecipients;" Required="TRUE" />
      <FieldRef ID="{15F259A2-3EE8-439f-8BEE-F4280B5B2EE7}" Name="CarbonCopyField" DisplayName="Cc"/>
      <FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" DisplayName="$Resources:Mailer,MailSubject" Sealed="TRUE"  />
      <FieldRef ID="{fc2e188e-ba91-48c9-9dd3-16431afddd50}" Name="WorkAddress" DisplayName="$Resources:Mailer,MailBody"/>
      <FieldRef ID="{A33B83F4-E29B-4b15-9253-111266B7745B}" Name="PriorityField" DisplayName="$Resources:Mailer,MailPriority"  />
      <FieldRef ID="{9da97a8a-1da5-4a77-98d3-4bc10456e700}" Name="Comments" />
      <FieldRef ID="{c4e0f350-52cc-4ede-904c-dd71a3d11f7d}" Name="JobTitle" />
      <FieldRef ID="{6ca7bd7f-b490-402e-af1b-2813cf087b1e}" Name="WorkCity" />
    </FieldRefs>
    <XmlDocuments>
      <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/events">
        <spe:Receivers xmlns:spe="http://schemas.microsoft.com/sharepoint/events">
          <spe:Receiver>
            <spe:Name>ItemAdded</spe:Name>
            <spe:Type>ItemAdded</spe:Type>
            <spe:Assembly>GroupMailer.EventRecevier, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e75e876125ad5849</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.sharepointutils.GMEventRecevier.GMEventReceiverItemEventReceiver</spe:Class>
          </spe:Receiver>
          <spe:Receiver>
            <spe:Name>ItemUpdating</spe:Name>
            <spe:Type>ItemUpdating</spe:Type>
            <spe:Assembly>GroupMailer.EventRecevier, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e75e876125ad5849</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.sharepointutils.GMEventRecevier.GMEventReceiverItemEventReceiver</spe:Class>
          </spe:Receiver>
          <spe:Receiver>
            <spe:Name>ItemAdding</spe:Name>
            <spe:Type>ItemAdding</spe:Type>
            <spe:Assembly>GroupMailer.EventRecevier, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e75e876125ad5849</spe:Assembly>
            <spe:Class>de.rwth.rz.campus.sharepointutils.GMEventRecevier.GMEventReceiverItemEventReceiver</spe:Class>
          </spe:Receiver>
        </spe:Receivers>
      </XmlDocument>
    </XmlDocuments>
  </ContentType>
  <CustomAction Id="{B461F1E0-81D6-4426-8497-6265915962CF}" Title="$Resources:Mailer,BCProject" Description="Beschreibung" GroupId="GeneralSettings"  Location="Microsoft.SharePoint.ListEdit" Sequence="40"  RegistrationId="10236" RegistrationType="List" >
    <UrlAction Url="~site/_layouts/Mailer/SwitchGroups.aspx?List={ListId}" />
  </CustomAction>
</Elements>
